<?php
// +----------------------------------------------------------------------
// | 前台接口定义
// +----------------------------------------------------------------------
use think\facade\Route;

Route::post('auth/login', '\app\controller\index\AuthController@login');

Route::group(function () {
    Route::post('auth/logout', '\app\controller\index\AuthController@logout');
})->middleware('auth');

Route::miss(function () {
    return unexpected_response(
        ERROR_CODE_ROUTE_UNDEFINED,
        'Route undefined.',
        404
    );
});
